package com.study.model.user;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.Data;
import java.util.Date;
/*
* sys_permission
* 权限表（具体的功能，如“用户新增”、“删除角色”等）
* */
@Data
@TableName("sys_permission")
@Schema(description = "权限表")
@Entity
public class SysPermission {

    private static final long serialVersionUID = 1L;

    @jakarta.persistence.Id
    @Schema(description = "id")
    @TableId(type = IdType.AUTO)
    @org.springframework.data.annotation.Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Schema(description = "权限名称，如用户查询、角色管理")
    private String permissionName;

    @Schema(description = "权限编码，如 sys:user:list 或 user:add")
    private String permissionCode;

    @Schema(description = "对应接口路径或功能")
    private String url;

    @Schema(description = "请求方法，如 GET、POST、DELETE")
    private String method;

    @Schema(description = "权限描述")
    private String description;
}
